<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.thunms.demo.test.entity.Products"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>提交测试</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="/css/css.css" rel="stylesheet" type="text/css" />
	

  </head>
  
  <body>
    
    <div id="center">
    <div id="list1">
      商品信息管理
    </div>
    <div id="list2">
    <form action="/admin/add.do">
      <input type="submit" name="button" value="发布商品" style="height:30px; width:80px;"/>
    </form>  
    </div>
    <div id="list3">
       选择管理商品的地点
      <form action="/admin/admin.do">
        
        <select name="place" id="select">
          <option value="beijing">北京</option>
          <option value="shanghai">上海</option>
        </select>
        <input type="submit" name="button"  value="确定" style="height:30px; width:60px;"/>
      </form>
    </div>
    <table width="800" border="1px" align="center">
  <tr>
    <td width="50">图片</td>
    <td width="50">价格</td>
    <td width="50">地点</td>
    <td width="560">名称</td>
    <td width="90">操作</td>
  </tr>
  <%List list = (List) session.getAttribute("prods");
					Iterator it = list.iterator();
					while (it.hasNext()) {
					Products temp = (Products) it.next();
				%> 
  <tr height="50">
    <td><a href="<%=temp.getUrl()%>"><img src="<%=temp.getPicture()%>" style="height:40px; width:40px;"/></a></td>
    <td><%=temp.getPrice()%> </td>
    <td><%=temp.getPlace()%> </td>
    <td><a href="<%=temp.getUrl()%>"><%=temp.getName()%></a></td>
    <td><input type="button" name="button" value="删除" style="height:30px; width:60px;"/></td>
  </tr>
  <%} %>
</table>
    
</div>
    


    
  </body>
</html>
